<?php
// .-----------------------------------------------------------------------------------
// | WE TRY THE BEST WAY
// |-----------------------------------------------------------------------------------
// | Author: 贝贝 <hebiduhebi@163.com>
// | Copyright (c) 2013-2015, http://www.gooraye.net. All Rights Reserved.
// |-----------------------------------------------------------------------------------


namespace Admin\Model;
use Think\Model;

/**
 * 基本用户成员信息表
 */
class MessageModel extends Model {

	/**
	 * 公告消息
	 */
	const TYPE_FOR_SYSTEM = 0;

	/**
	 * 故障消息
	 */
	const TYPE_FOR_FAULT= 1;

	/**
	 * 注册成功消息
	 */
	const TYPE_FOR_REGISTER_SUCCESS = 2;

	const MESSAGE_SYSTEM = "系统消息";
	const MESSAGE_ORDER = "订单通知";
	const MESSAGE_PUSH = "推送消息";
	const MESSAGE_EXPRESS = "物流消息";
	const MESSAGE_PRIZE = "中奖消息";
	const MESSAGE_OTHER = "其他消息";


	/*
	 * 用户模型自动完成 
	 * 
	 * */
	protected $_auto = array(
			array('create_time', NOW_TIME, self::MODEL_INSERT),
	);


	
}